<!DOCTYPE html>
<html>
<head>
	<title>Init from object</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
<script>
		var myRibbon;
		var data = {
			parent: "ribbonObj",
			icons_path: "../common/",
			items: [
				{
					type:'block', text:'office document', mode:'cols', list:[
						{id: "open", type:"button", text:"Open", isbig: true, img: "48/open.gif"},
						{id: "print",type:"button", text:"Quick<br />print" , img: "48/printer.png", isbig: true},
						{id: "preview",type:"button", text:"Print<br />preview", img: "48/zoom_selection.png", isbig: true}
					]
				},
				{
					type:'block', text:'edit', list:[
						{"id": "copy", "type":"button", "text":"copy", "img": "48/copy.gif"},
						{"id": "find", "type":"button", "text":"find" , "img": "48/page_find.png"},
						{"id": "go_to", "type":"button", "text":"go to" , "img": "48/tab_go.png"}
				]},
				{
					"type":"block", "text":"page setup", "list":[
						{"id": "page_setup", "type":"button", "text":"page<br />setup", "img": "48/pencil_ruler.png", "isbig": true },
						{"id": "printing_area", "type":"button", "text":"printing<br />area" , "img": "48/printer_add.png", "isbig": true }
					]
				},
			]
		};
		function doOnLoad() {
			myRibbon = new dhtmlXRibbon(data);
		};
		function doOnUnload() {
			if (myRibbon) {
				myRibbon.unload();
				myRibbon = null;
			}
		};
	</script>
</head>
<body onload="doOnLoad();" onunload="doOnUnload();">
	<div id="ribbonObj"></div>
</body>
</html>